package com.sevenGroup.pawnshop.controller.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("传入的仓库对象")
public class WarehousesForm {
    @Min(value = 1)
    @ApiModelProperty("仓库id")
    private Integer warehouseId;
    @NotNull
    @Length(min = 1)
    @ApiModelProperty("仓库名字")
    private String warehouseName;
    @NotNull
    @Length(min = 1)
    @ApiModelProperty("仓库地址")
    private String warehouseAddress;
    @NotNull
    @Length(min = 2,max = 10)
    @ApiModelProperty("仓库联系人")
    private String warehouseContact;
    @NotNull
    @Length(min = 11,max = 11)
    @ApiModelProperty("联系人电话")
    private String warehouseTel;
    @NotNull
    @Length(min = 1)
    @ApiModelProperty("仓库状态")
    private String warehouseState;
}
